const multer = require('@koa/multer');
const { UPLOAD_PATH } = require('../config/path');

// 上传头像中间件
const uploadAvatar = multer({
    dest: UPLOAD_PATH,

})
const handlAvatar = uploadAvatar.single('avatar');

// 上传其他

module.exports = {
    handlAvatar
}